package com.kevin.demo.enums;

public enum ResultEnum {

    UNKNOW_ERROR(-1,"未知错误"),
    SUCCESS(200,"成功"),

    SYSTEM_ERROR(500,"系统错误"),

    INSERT_ERROR(200,"插入出错"),

    UPDATE_ERROR(200,"更新出错"),
    LOGIN_ERROR(600, "用户名或密码错误!"),
    REQUEST_ERROR(30000, "请求中间层接口出现异常.");
    ;


    private Integer code;
    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
